package com.iw.sms.service;

import org.springframework.stereotype.Component;

import com.iw.sms.quartz.AutoReciveQuartz;
import com.iw.sms.quartz.SmsConfig;

@Component
public class AutoReciveSmsService {

	public boolean startReciveSms() {
		AutoReciveQuartz.isRun = true;
		SmsConfig.setProperty(SmsConfig.AUTO_RECIVE_RUN, true);
		return true;
	}

	public boolean stopReciveSms() {
		AutoReciveQuartz.isRun = false;
		SmsConfig.setProperty(SmsConfig.AUTO_RECIVE_RUN, false);
		return true;
	}

}
